package com.business.bean.oa;

import lombok.Getter;
import lombok.Setter;
import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;
import net.sf.rose.jdbc.bean.annotation.View;

/**
 * @author fengjian E-mail: 9110530@qq.com
 * @version 创建时间：2019年9月21日
 */
@Setter
@Getter
@Table(name = "OA_DISPATCH_USER", description = "工程人员调度记录表")
@View(name = "OA_DISPATCH_USER_VIEW", description = "工程人员调度记录视图")
@View(name = "OA_USER_DISPATCH_VIEW", description = "工程人员视图")
public class DispatchUserBean extends ModelBean {

	@Column(pk = true, type = Type.定长文本, description = "人员调度编号", canNull = false, size = 32, policy = "UUID")
	private String dispatchUserID = null;

	@Column(type = Type.定长文本, description = "工程调度编号", size = 32)
	private String dispatchWorkID = null;

	@Column(type = Type.定长文本, description = "用户编号", size = 32)
	private String userID = null;

	@Column(type = Type.变长文本, description = "工号", size = 10)
	private transient String workNo = null;

	@Column(type = Type.变长文本, description = "用户姓名", size = 50)
	private transient String userName = null;

	@Column(type = Type.定长文本, description = "工种编号", size = 32)
	private String jobID = null;

	@Column(type = Type.变长文本, description = "工种名称", size = 30)
	private transient String jobName = null;

	@Column(type = Type.变长文本, description = "工种等级", size = 32)
	private transient String jobGrade = null;

	@Column(type = Type.定长文本, description = "工程编号", size = 32)
	private String engineerID = null;

	@Column(type = Type.变长文本, description = "工程名称", size = 200)
	private transient String engineerName = null;

	@Column(type = Type.定长文本, description = "项目编号", size = 32)
	private String projectID = null;

	@Column(type = Type.变长文本, description = "项目名称", size = 200)
	private transient String projectName = null;

	/** 1:上午请假;2:下午请假;3:全天请假;4:多天 */
	@Column(type = Type.数字整型, description = "请假类别")
	private int applyType = 0;
}
